package com.dotmedia.entities;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * Entity implementation class for Entity: PermissionGroup
 * 
 */
@Entity
@Table(name = "permission_group")
public class PermissionGroup implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "permission_group_id_sequence")
	@SequenceGenerator(name = "permission_group_id_sequence", sequenceName = "permission_group_id_sequence", allocationSize = 1)
	@Column(name = "permission_group_id")
	private Integer id;

	@Column(name = "description")
	private String description;

	public PermissionGroup() {
	}

	public PermissionGroup(String description) {
		setDescription(description);
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
}
